﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WoChu.RfClient.Duty
{
    public partial class FrmDateTime : Form
    {
        public FrmDateTime()
        {
            InitializeComponent();
        }
        public static DateTime offDate;
        public static bool IsOK;
        private void btnYes_Click(object sender, EventArgs e)
        {
            if (DTOffShelves.Value == null)
            {
                MessageBox.Show("请选择下架指令日期！");
            }
            else
            {
                offDate = DTOffShelves.Value;
                IsOK = true;
            }
            this.Close();
        }

        private void btnNo_Click(object sender, EventArgs e)
        {
            IsOK = false;
            this.Close();
        }

        private void FrmDateTime_Load(object sender, EventArgs e)
        {
            DTOffShelves.Value = DateTime.Now;
        }
    }
}